import {
    SYNC_WORKER,
    SYNC_WORKER_LOADING,
    BEGIN_LOAD_WORKER,
    LOAD_WORKER
} from './constants';

export const beginLoadWorker = () => {
    return {
        type: BEGIN_LOAD_WORKER
    };
};

export const loadWorker = () => {
    return {
        type: LOAD_WORKER
    };
};

export const workerLoading = (payload: boolean) => {
    return {
        type: SYNC_WORKER_LOADING,
        payload
    };
};

export const syncWorker = (payload: any) => {
    return {
        type: SYNC_WORKER,
        payload
    };
};
